#ifndef __XrdDownloadManagerAppMon_H__
#define __XrdDownloadManagerAppMon_H__

#include <XrddmConfig.h>

class XrdDownloadManagerLog;
#include <time.h>
#include "ApMon.h"

/* the next two lines are necessary for using the logging facility */
#include "utils.h"
using namespace apmon_utils;


class XrdDownloadManagerAppMon
{
public:

    XrdDownloadManagerAppMon(const char* monalisaConfigFile = "http://alicepc100.jinr.ru/gentoo-files/monalisa_saske.conf");
    ~XrdDownloadManagerAppMon();

    bool Init(string configFile,string name);
    bool SendInfoMessage(char* message);
    bool SendErrorMessage(char* message);
    bool Finish();
    void SetFileFromTo(const char *from,const char* to);

private:

    XrdDownloadManagerLog 	*fLogDM;
    ApMon       			*fAppMon;

    char        			fMonalisaConfigFile[100];
    char        			fFarmName[100];
    char        			fFileFrom[100];
    char        			fFileTo[100];
    char        			fJobName[100];

};

#endif // XRDDOWNLOADMANAGERAPPMON_H
